/**
 * 模式对象 对表结构进行约束
 */
import BaseSchema from './BaseSchema.js';
export default Object.assign({}, BaseSchema, {
  mobile: {
    type: Number,
    required: true,
  },
  userName: {
    type: String,
    required: true,
  },
  realName: {
    type: String,
  },
  age: {
    type: Number,
    min: 0,
    default: 18
  },
  sex: {
    type: Boolean,
    default: true
  }
})
